]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screencast: Make it possible to disable draw-cursor
authorAlexander Larsson <alexl@redhat.com>
Mon, 16 Feb 2015 15:56:05 +0000 (16:56 +0100)
committerAlexander Larsson <alexl@redhat.com>
Tue, 17 Feb 2015 07:35:24 +0000 (08:35 +0100)
drawing cursor is on by default, so the code:
  if (options['draw-cursor'])
    recorder.set_draw_cursor(options['draw-cursor']);
never lets you unset it.

Fix is to use 'draw-cursor' in options instead.

https://bugzilla.gnome.org/show_bug.cgi?id=744599

js/ui/screencast.js

index dd78d39f7a8842913c81c51c6793f455bf4a50e7..bbda5fc5c30e9393ec6fef21b7d03bf31bf96aa0 100644 (file)
@@ -99,7 +99,7 @@ const ScreencastService = new Lang.Class({
             recorder.set_pipeline(options['pipeline']);
         if (options['framerate'])
             recorder.set_framerate(options['framerate']);
-        if (options['draw-cursor'])
+        if ('draw-cursor' in options)
             recorder.set_draw_cursor(options['draw-cursor']);
     },